home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / sgi / faq.admin < prev    next >
Encoding:
Text File  |  1995-07-25  |  71.7 KB  |  1,844 lines

  1. Subject: SGI admin Frequently Asked Questions (FAQ)
  2. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  3. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  4. Date: 20 Nov 1994 06:58:24 GMT
  5.  
  6. Archive-name: sgi/faq/admin
  7. Last-modified: Sat Nov 19 10:52:32 CST 1994
  8.  
  9.     SGI admin Frequently Asked Questions (FAQ)
  10.  
  11. This is one of the Silicon Graphics FAQ series, which consists of:
  12.  
  13.     SGI admin FAQ - IRIX system administration
  14.     SGI apps FAQ - Applications and miscellaneous programming
  15.     SGI audio FAQ - Audio applications and programming
  16.     SGI graphics FAQ - Graphics and user environment customization
  17.     SGI hardware FAQ - Hardware
  18.     SGI Impressario FAQ - IRIS Impressario
  19.     SGI Inventor FAQ - IRIS Inventor
  20.     SGI misc FAQ - Introduction & miscellaneous information
  21.     SGI movie FAQ - Movies
  22.     SGI Performer FAQ - IRIS Performer
  23.     SGI pointer FAQ - Pointer to the other FAQs
  24.  
  25. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  26. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  27. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  28. can't find one of the FAQs with your news program, you can get it by
  29. anonymous FTP from one of these sites:
  30.  
  31.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  32.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  33.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  34.     viz.tamu.edu:/pub/sgi/faq/
  35.  
  36. Note that rtfm.mit.edu is home to many other FAQs and informational
  37. documents, and is a good place to look if you can't find an answer
  38. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  39. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  40. in the text, and it will send you a document describing how to FTP by
  41. mail. You can also read a hypertext version of the FAQs at
  42.  
  43.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  44.  
  45. The SGI FAQs are freely distributable and we encourage wide circulation.
  46. The contents are accurate as far as we know, but the usual disclaimers
  47. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  48.  
  49. Topics covered in this FAQ:
  50. ---------------------------
  51.    -1- DIAGNOSTICS
  52.    -2- How can I determine which release of IRIX I'm running?
  53.    -3- How can I determine my SGI's Ethernet (and/or FDDI) address?
  54.    -4- My SGI crashed and generated a file, /usr/adm/crash/vmcore.1. How
  55.        can I examine this file to see what crashed my system?
  56.    -5- DISKS
  57.    -6- How big can a file be?
  58.    -7- Why is /debug or /proc full of huge files?
  59.    -8- How do I extend an existing filesystem onto a new disk?
  60.    -9- How do I know if I need more memory and/or swap space?
  61.   -10- How much swap space should I have per megabyte of memory?
  62.   -11- How can I increase my swap space?
  63.   -12- What are virtual and logical swap space? How do they work in IRIX
  64.        3.x, 4.0.x and 5.x?
  65.   -13- BOOTING
  66.   -14- How can I boot directly into single-user mode?
  67.   -15- How can I boot from a non-default disk?
  68.   -16- How can I boot my machine using a server on the other side of a
  69.        router?
  70.   -17- How do I make a bootable tape from an IRIX CD?
  71.   -18- Why can't I boot one of the stand-alone programs on a tape or CD?
  72.   -19- INSTALLING
  73.   -20- Is it possible to remotely install IRIX over a network?
  74.   -21- Which IRIX CD is the program 'foo' on?
  75.   -22- How can I extract a single file from an 'inst' subsystem?
  76.   -23- Why doesn't 'inst' work?
  77.   -24- Why doesn't 'inst' work remotely?
  78.   -25- I reinstalled an IRIX subsystem to restore a missing file or get
  79.        rid of a corrupted file, but it didn't help. Why not?
  80.   -26- How can I install IRIX onto a second disk which I can then move
  81.        to another machine?
  82.   -27- How can I copy my system disk onto a second disk which I can then
  83.        move to another machine?
  84.   -28- NETWORKING
  85.   -29- Why isn't my network working?
  86.   -30- How can I measure my network's reliability?
  87. ! -31- How do I add a static route?
  88.   -32- How can I make the 'slip' command advertise the Ethernet address
  89.        of the SLIP client?
  90.   -33- I've just edited inetd.conf, and nothing changed. Why?
  91.   -34- Why can't I 'rdist' files between Suns and SGIs?
  92.   -35- Why isn't the objectserver working?
  93.   -36- What is sending packets to the sgi-dog.mcast.net multicast
  94.        address?
  95.   -37- MAIL
  96.   -38- How can I set up 'sendmail' to pass 8-bit characters?
  97. ! -39- Why are my mailbox files changing ownership in IRIX 4.0.x?
  98.   -40- Why isn't a valid user getting their mail?
  99.   -41- How can SGIs and Suns share a mail spool?
  100.   -42- What's an "unknown mailer error"?
  101.   -43- What's "mailbox: Error 0"?
  102.   -44- Why can't I receive mail on an NFS-mounted mail spool under IRIX
  103.        5.2?
  104.   -45- NFS
  105.   -46- How can I tell what hostname to use in /etc/exports?
  106.   -47- Why can't I export an NFS-mounted filesystem?
  107.   -48- Why can't Ultrix automount SGI filesystems?
  108.   -49- Why does 'tar' work strangely on a filesystem mounted from an
  109.        SGI?
  110.   -50- Is 'pcnfsd' available for the SGI?
  111.   -51- Can I export a CD-ROM from my SGI to a non-SGI?
  112. ! -52- Why can't I export an ISO 9660 CD-ROM using NFS?
  113.   -53- How can I read an IRIX (EFS) CD-ROM on a machine which doesn't
  114.        use EFS?
  115.   -54- PRINTING
  116.   -55- Why can't 'lp' read my file?
  117.   -56- How can I use 'lpr' to print to my local printer?
  118.   -57- How can I use 'lp' to print to an 'lpr'-controlled printer?
  119. ! -58- How can I tell 'lp' to turn banner printing or page reversal off
  120.        or on?
  121.   -59- SECURITY
  122.   -60- Where can I learn about Unix and IRIX security?
  123.   -61- How can I check my system for security problems?
  124.   -62- How can I configure IRIX more securely?
  125. ! -63- How can I log more information about logins?
  126.   -64- How can I make an anonymous or restricted FTP account?
  127.   -65- How can I get X authorization to work?
  128.   -66- What security-related bugs does IRIX have?
  129.   -67- I think I've found a security hole in IRIX; whom do I notify at
  130.        SGI?
  131.   -68- BUGS
  132.   -69- Why is my network license daemon ('netlsd') exiting?
  133. ! -70- What's this 'iotim' error in my syslog in IRIX 4.0.x?
  134.   -71- Why do 'who', 'rusers', etc. show users who aren't really logged
  135.        in in IRIX 4.0.x?
  136.   -72- Why do some programs parse /etc/fstab incorrectly in IRIX 4.0.5?
  137. ! -73- Why is my Indigo's Ethernet performance dog-slow under IRIX
  138.        4.0.x?
  139. ! -74- Why is my Indigo getting SIGSEGVs and crashing under IRIX
  140.        4.0.5IOP?
  141. ! -75- Why is my Indigo2 panicking under IRIX 4.0.5?
  142. ! -76- What's wrong with ftpd in IRIX 5.2?
  143.   -77- Why isn't /usr/adm/SYSLOG being updated?
  144.   -78- I just edited /etc/inittab, and now I can't start up or shut down
  145.        my SGI! What's wrong?
  146.   -79- Why does timed say "bind: Cannot assign requested address"?
  147.   -80- MISCELLANEOUS
  148. ! -81- How do I set the number of processes allowed on my machine?
  149.   -82- Where can I get a termcap file for 'iris-ansi-net' to install on
  150.        my non-SGI system?
  151.   -83- Can I change my full name or login shell without being superuser?
  152.   -84- How can I administer my Iris without a graphics terminal?
  153.   -85- How can I use the visual admin tools on a system with graphics to
  154.        administer a system without graphics?
  155.   -86- Can I put my own picture in the 'clogin' display?
  156.  
  157. ----------------------------------------------------------------------
  158.  
  159. Subject:    -1- DIAGNOSTICS
  160. Date: 15 May 94 00:00:01 EST
  161.  
  162.   These questions discuss how to find out things about your system.
  163.  
  164. ------------------------------
  165.  
  166. Subject:    -2- How can I determine which release of IRIX I'm running?
  167. Date: 07 Feb 94 00:00:01 CST
  168.  
  169.   'uname -a' gives you all the kernel info; see the uname(1) manpage
  170.   for other options.
  171.  
  172.   Of more general use, since kernels don't always reflect installed
  173.   software, is the 'versions' command.  'versions' with no arguments
  174.   lists all the installed software subsystems.
  175.  
  176.   IRIX 5.2's System Manager ('chost') has the IRIX version number under
  177.   "IRIX Version" and a listing of installed software under "Software"
  178.   (the "Show Installed" button).
  179.  
  180. ------------------------------
  181.  
  182. Subject:    -3- How can I determine my SGI's Ethernet (and/or FDDI)
  183.                 address?
  184. Date: 07 Feb 94 00:00:01 CST
  185.  
  186.   Many thanks to Miguel Sanchez <miguel@oasis.csd.sgi.com> for
  187.   providing the original version of the following discussion, and to
  188.   Dave Olson <olson@sgi.com> for comments. Andrew Cherenson
  189.   <arc@sgi.com> reminded us that all these methods except the first
  190.   apply to FDDI as well, but we'll just say "Ethernet" below.
  191.  
  192.   Every system on an Ethernet network must have a unique Ethernet
  193.   address for the network to operate properly. The physical Ethernet
  194.   address of your system is the unique number assigned to the Ethernet
  195.   hardware on your system. This unique number is assigned to the
  196.   manufacturer of your Ethernet hardware by the IEEE (formerly by
  197.   Xerox, one of the original developers of Ethernet). This is not to be
  198.   confused with the IP address, which can be set arbitrarily.
  199.  
  200.   You may need to determine your system's Ethernet address if your
  201.   network manager requires it before connecting your system to a
  202.   network.  How to do so depends on whether IRIX is running and what
  203.   operating system version is loaded.  Method 1 only provides the
  204.   Ethernet address of the primary interface.  If you have multiple
  205.   Ethernet interfaces (boards) in a system, use method 2, 3, 4 or 5 to
  206.   determine the address(es) of any other interface(s).
  207.  
  208.   METHOD 1: eaddr
  209.  
  210.       If IRIX is not running, and the system is a Personal IRIS (4D20,
  211.       25, 30, or 35), Indigo, Crimson, Onyx or Challenge, you can
  212.       obtain the Ethernet address by typing 'eaddr' (older machines) or
  213.       'printenv eaddr' (newer) at the PROM monitor prompt.  On some
  214.       machines (4D30 or later) you can say 'nvram eaddr' while IRIX is
  215.       running to get the same result.
  216.  
  217.   METHOD 2: netstat
  218.  
  219.       Under IRIX 4.0.1 or later, you can use the netstat command. For
  220.       example,
  221.  
  222.       % /usr/etc/netstat -ia
  223.       Name  Mtu    Network   Address            Ipkts   Ierrs   Opkts  Oerrs  Coll
  224.       ec0   1500   siligrph  luey7              7765678 21648  384477     0  30338
  225.                   192.48.200.251
  226.                   192.0.0.1
  227.                   08:00:69:06:17:c2
  228.       lo0   32880  loopback localhost           41438       0   41438     0      0
  229.                   192.0.0.1
  230.  
  231.       As seen on the fourth address line, the address of the system
  232.       luey7's primary Ethernet interface, "ec0", is 08:00:69:06:17:c2.
  233.  
  234.   METHOD 3: arp
  235.  
  236.       You can obtain the Ethernet address of a Silicon Graphics system
  237.       by using another system on your network. 'ping' the system whose
  238.       Ethernet address you want, then use 'arp'. For example,
  239.  
  240.       % /usr/etc/ping -c 1 luey6
  241.       PING luey6.sgi.com (192.48.200.250): 56 data bytes
  242.       64 bytes from 192.48.200.250: icmp_seq=0 ttl=255 time=0 ms
  243.       ----luey6.sgi.com PING Statistics----
  244.       3 packets transmitted, 3 packets received, 0% packet loss
  245.       round-trip (ms)  min/avg/max = 0/0/0
  246.       % /usr/etc/arp luey6
  247.       luey6 (192.48.200.250) at 8:0:69:6:c:40
  248.       %
  249.  
  250.   METHOD 4: NetVizualyzer/FDDIVizualyzer and the like
  251.  
  252.       SGI's NetVizualyzer/FDDIVizualyzer network monitoring software
  253.       and at least one public domain equivalent ('netman', at
  254.       ftp.cs.curtin.edu.au:/pub/netman/) allow you to find the Ethernet
  255.       address corresponding to any IP address. Read the manual.
  256.  
  257.   METHOD 5: System Manager
  258.  
  259.       The Network Setup part ('cnet') of IRIX 5.2's System Manager tool
  260.       ('chost') shows the Ethernet address of each interface.
  261.  
  262.   4DDN: A Special Case
  263.  
  264.       DECnet uses a one-to-one relationship between the DECnet node ID
  265.       and the Ethernet address. If the DECnet address is changed the
  266.       Ethernet address is changed. DECnet Ethernet addresses always
  267.       start with aa:, so you can identify systems running DECnet with
  268.       'arp -a'.
  269.  
  270.       4DDN is Silicon Graphics' DECnet interconnection product. The
  271.       Ethernet address of an IRIS running 4DDN will change when 4DDN is
  272.       started.  Method 1 will return the original Ethernet address for
  273.       the system.  Methods 2-5 will show the Ethernet address currently
  274.       in use.
  275.  
  276.   sysinfo
  277.  
  278.       /etc/sysinfo is intended to return a unique identifier, which on
  279.       some machines includes part or all of the Ethernet address. This
  280.       is best regarded as an amusing coincidence, like HAL's name in
  281.       "2001".  Don't rely on it.
  282.  
  283. ------------------------------
  284.  
  285. Subject:    -4- My SGI crashed and generated a file,
  286.                 /usr/adm/crash/vmcore.1. How can I examine this file to
  287.                 see what crashed my system?
  288. Date: 12 Jul 94 00:00:01 EST
  289.  
  290.   For a start, you can use 'dbx' like so:
  291.  
  292.     dbx -k /var/adm/crash/{unix,vmcore}.#
  293.     t
  294.     &putbuf/1000s
  295.  
  296.   Some machines have a special 'dbx' for crash dumps,
  297.   /usr/adm/crash/dbx.  If it exists, use it instead of /usr/bin/dbx.
  298.  
  299.   The IRIX 5.x Electronic Services package includes a script, 'crpt',
  300.   which does this and more automagically. A copy of the IRIX 5.2
  301.   version lives at viz.tamu.edu:/pub/sgi/software/crpt/.
  302.  
  303. ------------------------------
  304.  
  305. Subject:    -5- DISKS
  306. Date: 15 May 94 00:00:01 EST
  307.  
  308.   These questions deal with disks and swap space.
  309.  
  310. ------------------------------
  311.  
  312. Subject:    -6- How big can a file be?
  313. Date: 29 Oct 94 00:00:01 EST
  314.  
  315.   SGI EFS filesystems can be up to 8G in size, but a file on an EFS
  316.   filesystem can only be 2GB in size.
  317.  
  318. ------------------------------
  319.  
  320. Subject:    -7- Why is /debug or /proc full of huge files?
  321. Date: 10 Dec 93 00:00:01 EST
  322.  
  323.   Those aren't disk files, they're interfaces to running processes.
  324.   Read the debug(4) (IRIX 4.0.x) and/or proc(4) (IRIX 5.x) manpages.
  325.  
  326. ------------------------------
  327.  
  328. Subject:    -8- How do I extend an existing filesystem onto a new disk?
  329. Date: 24 Jan 94 00:00:01 EST
  330.  
  331.   Back up the existing filesystem (just in case) then run 'mklv' and
  332.   'growfs'. 'mklv' and 'growfs' are nondestructive, so you don't need
  333.   to restore the backup unless you screw up. Don't use 'mkfs', which
  334.   does destroy existing data.
  335.  
  336. ------------------------------
  337.  
  338. Subject:    -9- How do I know if I need more memory and/or swap space?
  339. Date: 20 Feb 94 00:00:01 EST
  340.  
  341.   If processes are killed due to lack of memory/swap, you need more
  342.   memory and/or swap space. If your CPU is always waiting for swapping
  343.   (run 'osview' and look at the "%Swap" entry under "Wait Ratio") you
  344.   need more memory.
  345.  
  346. ------------------------------
  347.  
  348. Subject:   -10- How much swap space should I have per megabyte of
  349.                 memory?
  350. Date: 20 Feb 94 00:00:01 EST
  351.  
  352.   An oft-recommended ratio is X memory:2.5 X swap, but this may be too
  353.   slow. Decide how much of your favorite program (plus IRIX) needs to
  354.   be resident for good performance and how much doesn't, and make sure
  355.   you have enough memory for the former and enough memory plus swap for
  356.   the latter. Put "rmem" and "swp" in your ~/.grosview file, run
  357.   'gr_osview' and run your favorite program to see what it needs.
  358.  
  359. ------------------------------
  360.  
  361. Subject:   -11- How can I increase my swap space?
  362. Date: 26 Jul 94 00:00:01 EST
  363.  
  364.   The Jan/Feb 93 and May/Jun 94 Pipelines have detailed writeups on how
  365.   to do this in IRIX 4.0.x and 5.x respectively. The Jul/Aug Pipeline
  366.   has a correction to the latter article. If you like you can call the
  367.   TAC and have them fax you the very latest version.
  368.  
  369. ------------------------------
  370.  
  371. Subject:   -12- What are virtual and logical swap space? How do they
  372.                 work in IRIX 3.x, 4.0.x and 5.x?
  373. Date: 05 Jul 94 00:00:01 EST
  374.  
  375.   Two terms whose meanings should already be clear: Physical swap space
  376.   is an area on disk, either a partition or (in IRIX 5.x) a swap file.
  377.   Virtual memory is the sum of physical memory and swap space.
  378.  
  379.   IRIX 3.x accepts a memory request only if enough virtual memory is
  380.   free. Even if a process isn't using most of the memory it requested
  381.   (which happens often, e.g. when a large process forks and execs a
  382.   small process, or with Fortran 77 programs which allocate all storage
  383.   statically), its memory is unavailable to other processes until it
  384.   exits. IRIX 3.x has no virtual or logical swap space.
  385.  
  386.   In IRIX 4.0.x, IRIX accepts every memory request, and does not
  387.   allocate virtual memory until a process actually tries to use it.
  388.   This allows programs which request more memory than they use to run
  389.   with much less memory than would otherwise be required. If too many
  390.   processes actually use their memory requests so that virtual memory
  391.   is in danger of filling up, IRIX kills one or more processes. IRIX
  392.   usually kills the process which is using the most virtual memory,
  393.   which may well not be the process which most recently requested
  394.   virtual memory.
  395.  
  396.   IRIX 5.x works like IRIX 4.0.x, but one can set the amount of virtual
  397.   memory which IRIX is allowed to overallocate. This amount is called
  398.   "virtual swap space". "Logical swap space" is the sum of physical and
  399.   virtual swap. There is no virtual swap space by default, so IRIX 5.x
  400.   behaves like IRIX 3.x. One can set virtual swap to any amount of
  401.   memory; if it is set sufficiently high, memory requests will always
  402.   be granted, just like IRIX 4.0.x. Using jargon retroactively, IRIX
  403.   4.0.x has an infinite amount of virtual swap space.
  404.  
  405.   Large or infinite amounts of virtual swap space work well for many
  406.   people, because most programs don't use all the virtual memory they
  407.   request, at least not at once. If your programs do use all their
  408.   virtual memory, they'll be killed and you'll see "Process killed due
  409.   to insufficient memory/swap" messages in your SYSLOG.
  410.  
  411.   Under IRIX 4.0.x, you can only turn virtual swap off completely. Set
  412.   the kernel variable availsmem_accounting to 1: edit
  413.   /usr/sysgen/master.d/kernel, do 'autoconfig -f' and reboot. Doing so
  414.   makes IRIX 4.0.x behave like IRIX 3.x, allocating memory only if it
  415.   is actually available.
  416.  
  417.   Under IRIX 5.x, you can turn virtual swap on or off by doing
  418.   'chkconfig vswap off' or 'chkconfig vswap on', or change the size of
  419.   virtual swap by editing /etc/config/vswap.options, and rebooting. You
  420.   can also use 'swap -v' to do any of these things directly and without
  421.   rebooting.
  422.  
  423.   Remember that IRIX 5.x comes with virtual swap turned off and set to
  424.   zero.  If you were happy with IRIX 4.0.x, you should turn virtual
  425.   swap on and set its size to a very large number. If programs are
  426.   killed, decrease the size of virtual swap or turn it off.
  427.  
  428.   See the swap(1M) and swapctl(2) manpages for details.
  429.  
  430. ------------------------------
  431.  
  432. Subject:   -13- BOOTING
  433. Date: 15 May 94 00:00:01 EST
  434.  
  435.   As the song says, "There must be fifty ways to boot your Iris."
  436.  
  437. ------------------------------
  438.  
  439. Subject:   -14- How can I boot directly into single-user mode?
  440. Date: 20 Feb 94 00:00:01 EST
  441.  
  442.   Use the PROM monitor's 'single' command.
  443.  
  444.   For machines earlier than 4D35s, whose PROMs don't have that command,
  445.   say 'boot dksc(0,1,0)unix initstate=s'. Replace 'dksc(0,1,0)' with
  446.   the appropriate device and partition if your boot volume is something
  447.   other than a SCSI device partitioned in the standard manner; see the
  448.   chapter on the PROM monitor in the "Advanced Site and Server
  449.   Administration Guide".
  450.  
  451. ------------------------------
  452.  
  453. Subject:   -15- How can I boot from a non-default disk?
  454. Date: 20 Jan 94 00:00:01 CST
  455.  
  456.   Says Justin Mason <jmason@iona.ie>: If your disk is SCSI ID 4, do
  457.  
  458.     boot -f dksc(0,4,8)sash dksc(0,4,0)unix root=dks0d4s0
  459.  
  460.   or
  461.  
  462.     setenv bootfile dksc(0,4,8)sash
  463.     setenv path dksc(0,4,8)
  464.     setenv root dks0d4s0        # This is the tricky part 
  465.     auto
  466.  
  467.   from the PROM. The first method works once, so that subsequent
  468.   reboots use SCSI ID 1, and the second method sets the PROM to boot
  469.   from ID 4 every time (until you reset the PROM variables).
  470.  
  471. ------------------------------
  472.  
  473. Subject:   -16- How can I boot my machine using a server on the other
  474.                 side of a router?
  475. Date: 24 Jan 94 00:00:01 EST
  476.  
  477.   Tell the router to forward BOOTP packets. If it can't, NFS-mount the
  478.   remote volumes on another machine on the same subnet and use the
  479.   nearby machine for your boot server.
  480.  
  481. ------------------------------
  482.  
  483. Subject:   -17- How do I make a bootable tape from an IRIX CD?
  484. Date: 20 Feb 94 00:00:01 EST
  485.  
  486.   See the Sep/Oct 93 Pipeline for a detailed description, or just
  487.   follow Dave Olson <olson@sgi.com>'s summary: Take a look at the
  488.   distcp(1M) manpage, and do something like
  489.  
  490.       tapehost# mount -o ro cdhost:/CDROM /mnt
  491.       tapehost# distcp /mnt/dist /dev/nrtape
  492.  
  493.   Note that 'fx', 'ide', and 'sash' for all machines are in the dist/sa
  494.   file.  'sa' is an image of the first part of the tape; use 'mkbootape
  495.   -f sa -l' to see the contents.
  496.  
  497. ------------------------------
  498.  
  499. Subject:   -18- Why can't I boot one of the stand-alone programs on a
  500.                 tape or CD?
  501. Date: 03 Apr 94 00:00:01 EST
  502.  
  503.   One reason is that some CPU names are preceded by periods and some
  504.   aren't. Another is that the Indigo R4000 and later CPUs use the
  505.   suffix 'ARCS', not 'IP20' or whatever as one might expect from
  506.   'hinv'. For example, the correct command to boot fx directly from the
  507.   PROM monitor on an Indigo R4000 is 'boot -f dksc(ctlr,unit,8)sashARCS
  508.   dksc(ctlr,unit,7)stand/fx.ARCS'. Note the use of 'ARCS' instead of
  509.   'IP20' and the missing period in 'sashARCS'.
  510.  
  511. ------------------------------
  512.  
  513. Subject:   -19- INSTALLING
  514. Date: 15 May 94 00:00:01 EST
  515.  
  516.   These questions discuss software installation.
  517.  
  518. ------------------------------
  519.  
  520. Subject:   -20- Is it possible to remotely install IRIX over a network?
  521. Date: 20 May 93 00:00:01 CST
  522.  
  523.   Yes. You can install IRIX from a remote machine which has a CD-ROM, a
  524.   tape drive, or an IRIX distribution directory.  All of these
  525.   scenarios (and several others) are described in detail in the "IRIS
  526.   Software Installation Guide".  Examples are provided.
  527.  
  528. ------------------------------
  529.  
  530. Subject:   -21- Which IRIX CD is the program 'foo' on?
  531. Date: 25 May 94 00:00:01 EST
  532.  
  533.   Mount the CD and try 'grep foo /CDROM/dist/*.idb'. If you don't get
  534.   any output, 'foo' isn't on that CD. If you do, it is, and one of the
  535.   fields is the subsystem in which 'foo' lives. Entries in *.idb files
  536.   don't have a leading slash so you must leave it out if you grep for a
  537.   full path, e.g. 'grep usr/bin/lp /CDROM/dist/*.idb', not 'grep
  538.   /usr/bin/lp /CDROM/dist/*.idb'.
  539.  
  540. ------------------------------
  541.  
  542. Subject:   -22- How can I extract a single file from an 'inst'
  543.                 subsystem?
  544. Date: 25 May 94 00:00:01 EST
  545.  
  546.   'inst' guru Paul Jackson <pj@sgi.com> reveals all:
  547.  
  548.   - Find the subsystem in which the file lives, as described in the
  549.     previous question. For this example we'll extract /sbin/ed, which
  550.     lives in eoe1.sw.unix.
  551.  
  552.   - Follow the bouncing prompt:
  553.  
  554.     > su
  555.     > cd /usr/tmp
  556.     > mkdir -p tmproot/var/inst
  557.     > inst -f /CDROM/dist/eoe1 -r /usr/tmp/tmproot
  558.     > Inst> keep *
  559.     > Inst> install eoe1.sw.unix
  560.     > Inst> go
  561.     > Inst> q
  562.     > ls -l /usr/tmp/tmproot/sbin/ed
  563.     -rwxr-xr-x    1 root     sys        75480 May 24 13:57 /usr/tmp/tmproot/sbin/ed
  564.  
  565.   - Move your file somwhere else and 'rm -r /usr/tmp/tmproot'.
  566.  
  567.   - That was under IRIX 5.x. Under IRIX 4.0.x or earlier, use
  568.     '/usr/tmp/tmproot/usr/lib/inst' for a temporary inst directory
  569.     instead of '/usr/tmp/tmproot/var/inst'.
  570.  
  571. ------------------------------
  572.  
  573. Subject:   -23- Why doesn't 'inst' work?
  574. Date: 16 Jan 94 00:00:01 EST
  575.  
  576.   One possibility is that you're using an old 'inst' with new
  577.   software.  Always use an 'inst' at least as new as what you're
  578.   installing.
  579.  
  580. ------------------------------
  581.  
  582. Subject:   -24- Why doesn't 'inst' work remotely?
  583. Date: 05 May 94 00:00:01 EST
  584.  
  585.   Usually because it can't log in to the machine with the distribution
  586.   media.  'inst' uses the guest account to do so, so make sure that
  587.   guest on the machine on which you want to install software can rlogin
  588.   to guest on the machine with the distribution media without a
  589.   password.
  590.  
  591. ------------------------------
  592.  
  593. Subject:   -25- I reinstalled an IRIX subsystem to restore a missing
  594.                 file or get rid of a corrupted file, but it didn't help.
  595.                 Why not?
  596. Date: 13 Apr 94 00:00:01 EST
  597.  
  598.   'inst' doesn't bother to install a subsystem if the same or a newer
  599.   version is already installed. Tell it to install anyway by saying
  600.   'set neweroverride' before you say 'go'. Removing the subsystem and
  601.   reinstalling it will do more or less the same thing.
  602.  
  603. ------------------------------
  604.  
  605. Subject:   -26- How can I install IRIX onto a second disk which I can
  606.                 then move to another machine?
  607. Date: 20 Jan 94 00:00:01 EST
  608.  
  609.   With difficulty. Many parts of the installation process assume that
  610.   you're installing IRIX onto your system disk (SCSI ID 1). Just fiddle
  611.   with SCSI ID switches and/or move disks around to make the disk onto
  612.   which you want to install IRIX the system disk for the duration of
  613.   the installation.
  614.  
  615.   Furthermore, IRIX has many hardware dependencies, so you should only
  616.   move system disks between absolutely identical machines. If you want
  617.   to make a system disk for a machine without a network connection,
  618.   CD-ROM or tape drive, the easiest and safest way is to borrow another
  619.   CD-ROM or tape drive.
  620.  
  621.   If you want to try anyway, Justin Mason <jmason@iona.ie> reports that
  622.   the following works under IRIX 5.1.1:
  623.  
  624.   Set up the disk, e.g. with SCSI id 4, fx a generic "[bo]otable"
  625.   partition setup onto it, and mkfs the partitions. Copy sash, etc.
  626.   from your system disk to the new disk with dvhtool. Boot up the
  627.   miniroot as usual, go into inst, choose "admin" from the menu and do
  628.   the following, replacing SCSI IDs and partition numbers as
  629.   appropriate:
  630.  
  631.     umount /root
  632.     umount /root/usr
  633.     mount /dev/dsk/dks0d4s0 /root
  634.     mount /dev/dsk/dks0d4s6 /root/usr
  635.     mount                # Just to check
  636.     return                # Go back to main inst menu
  637.  
  638.   Then install as you like.
  639.  
  640. ------------------------------
  641.  
  642. Subject:   -27- How can I copy my system disk onto a second disk which I
  643.                 can then move to another machine?
  644. Date: 17 Jun 94 00:00:01 EST
  645.  
  646.   See the article in the Jul/Aug 92 Pipeline and the addendum in the
  647.   Nov/Dec 92 Pipeline, and note that the warning about hardware
  648.   dependencies in the previous question applies here too. Steve
  649.   Kotsopoulos <steve@ecf.toronto.edu> has written a script which does
  650.   this automatically; you can FTP it from
  651.   viz.tamu.edu:/pub/sgi/software/clonedisk/clonedisk. Be sure to read
  652.   the comments before running it!
  653.  
  654. ------------------------------
  655.  
  656. Subject:   -28- NETWORKING
  657. Date: 15 May 94 00:00:01 EST
  658.  
  659.   These questions discuss general networking.
  660.  
  661. ------------------------------
  662.  
  663. Subject:   -29- Why isn't my network working?
  664. Date: 08 Oct 94 94 00:00:01 EST
  665.  
  666.   A list of good things to try is at
  667.   viz.tamu.edu:/pub/sgi/lists/network-checklist.
  668.  
  669. ------------------------------
  670.  
  671. Subject:   -30- How can I measure my network's reliability?
  672. Date: 16 Oct 94 00:00:01 EST
  673.  
  674.   Don't worry about collisions. They are part of normal operation on a
  675.   crowded Ethernet. You *should* worry about late collisions (which are
  676.   logged to the console) and lost packets (which you can easily measure
  677.   with the command 'ping -fs 3000 -c 1000 someotherhost'), which
  678.   usually mean network hardware problems or a misconfigured bridge or
  679.   router.
  680.  
  681.   See Chapter 18 of the "IRIX Advanced Site and Server Administration
  682.   Guide" and the Sep/Oct 93 Pipeline for more.
  683.  
  684. ------------------------------
  685.  
  686. Subject: ! -31- How do I add a static route?
  687. Date: 13 Nov 94 00:00:01 EST
  688.  
  689.   Some sites handle IP routing by designating a routing machine and
  690.   having all other hosts define a static route to that machine. The way
  691.   to do this on SGIs is in the /etc/init.d/network.local script.
  692.  
  693.   1) Read the paragraph just before the copyright at the top of
  694.      /etc/init.d/network and make the links it specifies.
  695.  
  696.   2) Put something like the following in /etc/init.d/network.local,
  697.      replacing ROUTER'S.IP.ADDRESS.HERE with the address of your
  698.      router.
  699.  
  700.      #! /bin/sh
  701.      IS_ON=/sbin/chkconfig
  702.      case "$1" in
  703.      'start')
  704.          if $IS_ON network; then    # network must be chkconfig'ed on
  705.              /usr/etc/route add default 130.132.25.1 1
  706.          fi
  707.          ;;
  708.      'stop')
  709.          /usr/etc/route delete default 130.132.25.1 ;;
  710.      *)
  711.          echo "Usage: $0 {start|stop}" ;;
  712.      esac
  713.  
  714.   If you NFS-mount disks from the other side of the static route, they
  715.   will not be unmounted properly during shutdown. You can fix this by
  716.   making the links so that /etc/init.d/network.local runs before
  717.   /etc/init.d/network: 'ln -s /etc/init.d/network.local
  718.   /etc/rc0.d/K41network' instead of '/etc/rc0.d/K39network'.
  719.  
  720. ------------------------------
  721.  
  722. Subject:   -32- How can I make the 'slip' command advertise the Ethernet
  723.                 address of the SLIP client?
  724. Date: 10 Dec 93 00:00:01 EST
  725.  
  726.   You can't. Just add something like
  727.  
  728.     /usr/etc/arp -s $USER `netstat -ia | grep :` pub
  729.  
  730.   to the shell script in which you start the SLIP process. $USER is the
  731.   SLIP client. The 'netstat | grep' part gets the host's Ethernet
  732.   address, and 'arp' advertises the host as an ARP server for $USER.
  733.   See also the arp(1M) manpage.
  734.  
  735. ------------------------------
  736.  
  737. Subject:   -33- I've just edited inetd.conf, and nothing changed. Why?
  738. Date: 10 Dec 93 00:00:01 CST
  739.  
  740.   You need to make 'inetd' reread the file. Do 'killall -HUP inetd' or
  741.   reboot.
  742.  
  743. ------------------------------
  744.  
  745. Subject:   -34- Why can't I 'rdist' files between Suns and SGIs?
  746. Date: 10 Dec 93 00:00:01 EST
  747.  
  748.   Sun's 'rdist' expects SGI's 'rdist' to live in /usr/ucb, but it's
  749.   actually in /usr/bsd. Make a symbolic link from /usr/ucb/rdist to
  750.   /usr/bsd/rdist and all will be well.
  751.  
  752. ------------------------------
  753.  
  754. Subject:   -35- Why isn't the objectserver working?
  755. Date: 04 Nov 94 00:00:01 EST
  756.  
  757.   Anne Eagle <annee@sgi.com> posted most of the following:
  758.  
  759.   - Its database may be corrupt. If the objectserver appears to start
  760.     OK but crashes later, this is probably the case. Rebuild it like
  761.     so:
  762.  
  763.       /etc/init.d/cadmin stop
  764.       /etc/init.d/cadmin clean
  765.       /etc/init.d/cadmin start
  766.  
  767.     If the preceding doesn't work, try this
  768.  
  769.       /etc/init.d/cadmin stop
  770.       mv /var/Cadmin/data /var/Cadmin/data.old
  771.       /usr/Cadmin/bin/parseclasses
  772.       /etc/init.d/cadmin start
  773.  
  774.     Note that either method destroys "Privileged User" and "Business Card"
  775.     information.
  776.  
  777.   - One of your system configuration files (including but not limited
  778.     to /etc/exports, /etc/fstab, /etc/inittab, /etc/mtab, /etc/passwd)
  779.     may have minor format problems which don't bother IRIX proper but
  780.     do bother the objectserver. Such problems include a last line which
  781.     doesn't end with a linefeed, a backspace not preceded by a space in
  782.     /etc/exports, or unprintable characters. One sign that you have
  783.     such a problem is a core file in /var/Cadmin/data. If you find and
  784.     fix a problem, rebuild the databases as above.
  785.  
  786.     If you can't find the problem, try the following:
  787.  
  788.       par -s -i -N open -l -SS /usr/Cadmin/bin/objectserver -d
  789.  
  790.     The last file objectserver opens is probably where the problem is.
  791.     If you're really desperate, the TAC will give you an objectserver
  792.     compiled with -g and help you run dbx on it.
  793.  
  794.   - You may be swamping the objectserver with NIS (YP) users. There are
  795.     several ways around this:
  796.  
  797.     - Start a directoryserver on a machine on your local network.
  798.  
  799.     - Use netgroups or the "+user" form in /etc/passwd instead of just
  800.       a "+" and rebuild the databases as above.
  801.  
  802.     - Most severely, remove the NIS object definition files so that the
  803.       objectserver will not create NIS objects, rebuild the
  804.       objectserver database (without the NIS objects) and restart the
  805.       objectserver as follows. You will not be able to manipulate NIS
  806.       users with Cadmin if you do this.
  807.  
  808.       killall fm
  809.       mediad -k
  810.       killall objectserver
  811.       mv /var/Cadmin/data /var/Cadmin/data.orig
  812.       cp -pr /usr/Cadmin/classes /usr/Cadmin/classes.orig
  813.       rm /usr/Cadmin/classes/groupObject.op
  814.       rm /usr/Cadmin/classes/nisAccountObject.op
  815.       rm /usr/Cadmin/classes/peopleNISObject.op
  816.       rm /usr/Cadmin/classes/peopleObject.op
  817.       /usr/Cadmin/bin/parseclasses
  818.       /usr/Cadmin/bin/objectserver
  819.       ps -ef | grep obj
  820.       
  821.       Wait until you see 2 objectserver processes running, then do
  822.  
  823.       mediad
  824.       fm -lrb &
  825.  
  826.   - Chris Riney <chris.riney@tandy.com> says: "We have just discovered
  827.     here at our site that if you do not have a route defined for the
  828.     SGI multicast subnet, then objectserver will gobble up memory.  I
  829.     established a route for 224.0.0.0, and objectserver has been up for
  830.     over a week without consuming additional memory." This route is
  831.     defined in the stock /etc/init.d/network.
  832.  
  833.   - Andreas Klingler <andreas.klingler@rrze.uni-erlangen.de> fixed his
  834.     objectserver by removing /usr/Cadmin/classes/printerObject.op and
  835.     then rebuilding /var/Cadmin/data as above.
  836.  
  837.   See also "Indigo Magic Tips and Tricks" in the Sep/Oct 94 Pipeline.
  838.  
  839. ------------------------------
  840.  
  841. Subject:   -36- What is sending packets to the sgi-dog.mcast.net
  842.                 multicast address?
  843. Date: 15 Jun 94 00:00:01 EST
  844.  
  845.   The objectserver.
  846.  
  847. ------------------------------
  848.  
  849. Subject:   -37- MAIL
  850. Date: 15 May 94 00:00:01 EST
  851.  
  852.   These questions discuss mail configuration and problems.
  853.  
  854. ------------------------------
  855.  
  856. Subject:   -38- How can I set up 'sendmail' to pass 8-bit characters?
  857. Date: 12 Feb 94 00:00:01 EST
  858.  
  859.   Dunno, offhand, but many experts say "don't try". RFC822 requires
  860.   mail transport agents to *clear* the eighth bit, and many hosts do.
  861.   Some which don't may crash when they get mail with the eighth bit
  862.   set. Instead, use a MIME-compatible mail program. MIME, described in
  863.   RFC1521, is a standard for enclosing non-RFC822 material in your
  864.   mail. The apps FAQ discusses several mail programs which support it.
  865.  
  866.   Nonetheless, if someone wants to tell us about putting SGI's
  867.   'sendmail' into 8-bit mode we'll note it here.
  868.  
  869. ------------------------------
  870.  
  871. Subject: ! -39- Why are my mailbox files changing ownership in IRIX
  872.                 4.0.x?
  873. Date: 13 Nov 94 00:00:01 EST
  874.  
  875.   If your mail directory is mounted from another machine, your machine
  876.   does not have root access, and the other machine has BSD-style
  877.   "restricted chown" (either because it's not an SGI or because someone
  878.   turned restricted chown on), /bin/mail will change mail file
  879.   ownership when delivering local mail. Without unrestricted chown or
  880.   root access, /bin/mail is unable to give mail files back to their
  881.   owners after delivering mail. You can fix the problem by turning off
  882.   restricted chown on the other machine (if it's an SGI), exporting the
  883.   mail directory with root access for your machine, or upgrading to
  884.   IRIX 5.2, in which the problem is fixed.
  885.  
  886. ------------------------------
  887.  
  888. Subject:   -40- Why isn't a valid user getting their mail?
  889. Date: 24 Jan 94 00:00:01 EST
  890.  
  891.   IRIX' mail system requires "valid users" to have both valid password
  892.   file entries (whether local or via NIS) and home directories. The
  893.   latter often trips one up when installing POP servers and whatnot,
  894.   where home directories aren't really necessary. Just make a fake
  895.   one.
  896.  
  897. ------------------------------
  898.  
  899. Subject:   -41- How can SGIs and Suns share a mail spool?
  900. Date: 05 Feb 94 00:00:01 EST
  901.  
  902.   Paul Riddle <paulr@umbc.edu> has written up how he did it. Read
  903.   ftp.umbc.edu:/pub/sgi/shared-spool.text.
  904.  
  905. ------------------------------
  906.  
  907. Subject:   -42- What's an "unknown mailer error"?
  908. Date: 20 Feb 94 00:00:01 EST
  909.  
  910.   There's a list in viz.tamu.edu:/pub/sgi/software/mail/mail-errors.
  911.  
  912. ------------------------------
  913.  
  914. Subject:   -43- What's "mailbox: Error 0"?
  915. Date: 05 Mar 94 00:00:01 EST
  916.  
  917.   It's a harmless bug; don't worry about it. It is fixed in IRIX
  918.   versions 4.0.5H/4.0.5IOP and later.
  919.  
  920. ------------------------------
  921.  
  922. Subject:   -44- Why can't I receive mail on an NFS-mounted mail spool
  923.                 under IRIX 5.2?
  924. Date: 29 Aug 94 00:00:01 EST
  925.  
  926.   IRIX 5.2 NFS has a bug which prevents writing to a zero-length file
  927.   if the writing process has group write permission but not group read
  928.   (or user write) permission. IRIX 5.2 /bin/mail likes to set the
  929.   permissions of /var/mail/<user> to mode 620, exactly what is needed
  930.   to exercise the NFS bug. There is no patch for the NFS bug (although
  931.   it will be fixed in IRIX 5.3) but you can get a /bin/mail from the
  932.   TAC which leaves mail files mode 660 and thus doesn't exercise the
  933.   bug.
  934.  
  935. ------------------------------
  936.  
  937. Subject:   -45- NFS
  938. Date: 15 May 94 00:00:01 EST
  939.  
  940.   These questions discuss NFS.
  941.  
  942. ------------------------------
  943.  
  944. Subject:   -46- How can I tell what hostname to use in /etc/exports?
  945. Date: 07 Feb 94 00:00:01 EST
  946.  
  947.   NFS servers may need a particular form of a client's name in
  948.   /etc/exports to allow the client access. This may not be obvious, for
  949.   example if the server is also a router. Log in from the client to the
  950.   server and say 'echo $REMOTEHOST' to see what the server thinks the
  951.   client is called, and put that in /etc/exports.
  952.  
  953.   The System Manager ('chost') should be able to determine the correct
  954.   hostname for you.
  955.  
  956. ------------------------------
  957.  
  958. Subject:   -47- Why can't I export an NFS-mounted filesystem?
  959. Date: 10 Dec 93 00:00:01 CST
  960.  
  961.   This is known as multi-hop NFS. It is not allowed or supported in
  962.   (Sun's) NFS because it is not in general possible to detect errors
  963.   such as infinite mount loops, on either the client or the server.
  964.  
  965. ------------------------------
  966.  
  967. Subject:   -48- Why can't Ultrix automount SGI filesystems?
  968. Date: 10 Dec 93 00:00:01 CST
  969.  
  970.   Ultrix's automount uses an "untrusted" port for mount requests. Add
  971.   an '-n' to the mountd lines in /usr/etc/inetd.conf (/etc/inetd.conf
  972.   in IRIX 5.x), like so:
  973.  
  974.   mountd/1    stream  rpc/tcp wait    root    /usr/etc/rpc.mountd     mountd -n
  975.   mountd/1    dgram   rpc/udp wait    root    /usr/etc/rpc.mountd     mountd -n
  976.  
  977.   then 'killall mountd' and 'killall -HUP inetd' or reboot.
  978.  
  979. ------------------------------
  980.  
  981. Subject:   -49- Why does 'tar' work strangely on a filesystem mounted
  982.                 from an SGI?
  983. Date: 03 Apr 94 00:00:01 EST
  984.  
  985.   When user A extracts a file owned by user B from a tar archive, 'tar'
  986.   makes the file owned by user A unless user A is the superuser.  Some
  987.   systems allow users to give files away (e.g. IRIX); some do not
  988.   (e.g.  SunOS).  On some systems with the restricted behavior (SunOS
  989.   among them), 'tar' tries to give the file to user B whether or not
  990.   user A is the superuser, assuming that the chown system call will
  991.   fail if user A is not. This is not true if user A is using 'tar' on
  992.   (e.g.) a Sun to extract files onto a filesystem NFS-mounted from
  993.   (e.g.) an SGI. 'tar' may create zero-length files or give away
  994.   directories and then be unable to extract files into them.
  995.  
  996.   Work around the problem by doing the 'tar' on the SGI or extracting
  997.   onto a Sun filesystem. It is possible that third-party versions of
  998.   'tar' (e.g. GNU tar) are smarter; let us know if so. Don't turn the
  999.   restricted_chown kernel variable on on the SGI; while this will fix
  1000.   the problem at hand, it will break SGI programs which need to give
  1001.   files away without running as root (notably /bin/mail).
  1002.  
  1003. ------------------------------
  1004.  
  1005. Subject:   -50- Is 'pcnfsd' available for the SGI?
  1006. Date: 27 Feb 94 00:00:01 EST
  1007.  
  1008.   For IRIX 4.0.x, look in ftp.sgi.com:/support/pcnfsd.sysV/. (Note that
  1009.   although SGI makes this available, they do not support it.) For IRIX
  1010.   5.x, look in viz.tamu.edu:/pub/sgi/software/pcnfsd/.
  1011.  
  1012. ------------------------------
  1013.  
  1014. Subject:   -51- Can I export a CD-ROM from my SGI to a non-SGI?
  1015. Date: 10 Dec 93 00:00:01 EST
  1016.  
  1017.   Not in IRIX 4.0.x. You can in IRIX 5.x, as you would any other
  1018.   filesystem.
  1019.  
  1020. ------------------------------
  1021.  
  1022. Subject: ! -52- Why can't I export an ISO 9660 CD-ROM using NFS?
  1023. Date: 13 Nov 94 00:00:01 EST
  1024.  
  1025.   You're using IRIX 4.0.x. Under IRIX 5.x, it just works.
  1026.  
  1027.   Under IRIX 4.0.x you can, but only to another SGI (see the previous
  1028.   question) and there's a catch. Add the CD-ROM filesystem to
  1029.   /etc/exports and export it with 'exportfs' *before* you mount the
  1030.   CD-ROM. For more detail, read
  1031.   viz.tamu.edu:/pub/sgi/hardware/exporting-iso-9660-cdrom or the
  1032.   article in the Jan/Feb 93 Pipeline, or for an up-to-date copy call
  1033.   the TAC and ask for SGI's writeup on "Mounting an ISO 9660 CD Across
  1034.   NFS".
  1035.  
  1036. ------------------------------
  1037.  
  1038. Subject:   -53- How can I read an IRIX (EFS) CD-ROM on a machine which
  1039.                 doesn't use EFS?
  1040. Date: 09 Jan 94 00:00:01 EST
  1041.  
  1042.   You want 'efslook', in viz.tamu.edu:/pub/sgi/software/efslook/.
  1043.  
  1044. ------------------------------
  1045.  
  1046. Subject:   -54- PRINTING
  1047. Date: 15 May 94 00:00:01 EST
  1048.  
  1049.   These questions discuss printing.
  1050.  
  1051. ------------------------------
  1052.  
  1053. Subject:   -55- Why can't 'lp' read my file?
  1054. Date: 10 Dec 93 00:00:01 EST
  1055.  
  1056.   'lp' is setuid, so it can only read world-readable files. You can say
  1057.   'lp < file' if you don't want to make your file world-readable.
  1058.  
  1059. ------------------------------
  1060.  
  1061. Subject:   -56- How can I use 'lpr' to print to my local printer?
  1062. Date: 10 Dec 93 00:00:01 EST
  1063.  
  1064.   SGI provides 'lpr' for printing on remote printers, and does not
  1065.   support it for local printing. One way to do it anyhow is to make an
  1066.   /etc/printcap entry with an output filter which is just a wrapper
  1067.   around 'lp'. If that isn't crystal-clear, call the TAC and ask for
  1068.   their "faxable" on "Integrating The AT&T Spooler With The BSD LPR
  1069.   Print Spooler". A not-guaranteed-to-be-up-to-date copy is at
  1070.   viz.tamu.edu:/pub/sgi/software/lp-lpr/lpr-to-lp.
  1071.  
  1072. ------------------------------
  1073.  
  1074. Subject:   -57- How can I use 'lp' to print to an 'lpr'-controlled
  1075.                 printer?
  1076. Date: 19 Jun 94 00:00:01 EST
  1077.  
  1078.   Two possible ways:
  1079.  
  1080.   - Write an 'lp' interface script that calls 'lpr'. Impressario 1.1 or
  1081.     later can do this for you; see the Impressario FAQ. If you don't
  1082.     have Impressario you can do it yourself or call SGI and ask for
  1083.     their writeup, "LPTOLPR, A Model File for LP", which includes (in
  1084.     fact, consists of) just such an interface script. A
  1085.     not-guaranteed-to-be-up-to-date copy is at
  1086.     viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-to-lpr.
  1087.  
  1088.   - Write an 'lp' replacement script that calls 'lpr'. One such script
  1089.     is at viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-wrapper-for-lpr.
  1090.  
  1091. ------------------------------
  1092.  
  1093. Subject: ! -58- How can I tell 'lp' to turn banner printing or page
  1094.                 reversal off or on?
  1095. Date: 13 Nov 94 00:00:01 EST
  1096.  
  1097.   'lp' controls printers via shell scripts, called 'models', which live
  1098.   in /var/spool/lp/model. When you install a printer, the appropriate
  1099.   model script is copied to /var/spool/lp/interface/<name-of-printer>.
  1100.  
  1101.   To temporarily change a printer's behavior, look at the manpage for
  1102.   its interface script (or, if there is none, the script itself) to see
  1103.   what options it wants, and pass them to the script with 'lp's '-o'
  1104.   option.  For example, 'lp -o"-nobanner" file' tells a "Generic
  1105.   Postscript" printer (described in the gpsinterface(1) manpage) to
  1106.   print 'file' without a banner page.
  1107.  
  1108.   To permanently change a printer's behavior, edit its interface
  1109.   script.  The following are true for "Generic Postscript" printers,
  1110.   but the idea is the same for others:
  1111.  
  1112.   - To turn banner printing off or on, change the line 'BANNER=1' to
  1113.     'BANNER=0' or vice versa.
  1114.  
  1115.   - To turn page reversal off or on, change the line
  1116.     'send=/usr/lib/print/lptops' to 'send="/usr/lib/print/lptops -U"'
  1117.     (note the quotes) or vice versa.
  1118.  
  1119.   In IRIX 5.x, you can change these settings in the printpanel. You can
  1120.   also turn banner printing off on a per-user basis by doing 'echo
  1121.   nobanner >> /var/spool/lp/settings/<printername>/<yourusername>'.
  1122.  
  1123. ------------------------------
  1124.  
  1125. Subject:   -59- SECURITY
  1126. Date: 15 May 94 00:00:01 EST
  1127.  
  1128.   These questions discuss security.
  1129.  
  1130. ------------------------------
  1131.  
  1132. Subject:   -60- Where can I learn about Unix and IRIX security?
  1133. Date: 09 Oct 94 00:00:01 EST
  1134.  
  1135.   The Jul/Aug 94 Pipeline has an article discussing general Unix
  1136.   security with some IRIX-specific aspects. Read
  1137.   rtfm.mit.edu:/pub/usenet/news.answers/security-faq and the books and
  1138.   papers listed therein for general discussions of Unix security.  Look
  1139.   in ftp.cert.org:/ and ciac.llnl.gov:/pub/ciac/ for CERT and CIAC
  1140.   material (respectively) and general security information and tools.
  1141.   If you have a lot of spare time, consider the comp.security.unix
  1142.   newsgroup.
  1143.  
  1144. ------------------------------
  1145.  
  1146. Subject:   -61- How can I check my system for security problems?
  1147. Date: 09 Oct 94 00:00:01 EST
  1148.  
  1149.   Get Nate Sammons' <nate@vis.colostate.edu> 'securscan' from
  1150.   ftp://ftp.vis.colostate.edu/pub/irix/security/.  It checks for many
  1151.   common IRIX-specific security bugs and problems.  You might also want
  1152.   to try a generic Unix security-checking tool such as COPS or tiger
  1153.   and/or a password checker such as Crack. The security FAQ referenced
  1154.   above gives their locations.
  1155.  
  1156. ------------------------------
  1157.  
  1158. Subject:   -62- How can I configure IRIX more securely?
  1159. Date: 17 Oct 94 00:00:01 EST
  1160.  
  1161.   Several aspects of SGI's default IRIX configuration were chosen for
  1162.   convenience, not security. Unless your machine is not networked, you
  1163.   may be more concerned about security than SGI assumed.  Note that
  1164.   these items have been discussed on Usenet many times, and Usenet
  1165.   chatter is not a good way to change SGI policy. If they bother you,
  1166.   complain to your sales rep and then fix them yourself as follows.
  1167.  
  1168.   Under any version of IRIX,
  1169.  
  1170.   - Several accounts come without passwords, including (but not limited
  1171.     to) guest, 4Dgifts, demos, tutor, tour and particularly lp. Examine
  1172.     /etc/passwd and lock all unnecessarily open accounts.  Note that 1)
  1173.     parts of IRIX (e.g. 'inst') use the open guest account by default,
  1174.     and 2) remote 'lp' clients need access to the lp account to print,
  1175.     so you'll need to make other arrangements.
  1176.  
  1177.   - 'xdm' does 'xhost +' by default when you log in. This allows anyone
  1178.     to open windows on your display and even to record what you type at
  1179.     your keyboard. Close this hole by removing the 'xhost +' from
  1180.     /usr/lib/X11/xdm/Xsession, /usr/lib/X11/xdm/Xsession-remote and (in
  1181.     IRIX 5.x) /usr/lib/X11/xdm/Xsession.dt.  In IRIX 5.2 and later you
  1182.     can use X authority to control access to remote displays; see
  1183.     below. In IRIX 5.1.x and earlier X authority doesn't work, so
  1184.     you'll need to use 'xhost' judiciously to get to remote displays:
  1185.     say 'xhost +localhost' to run DGL programs and 'xhost +otherhost'
  1186.     to display remote X programs.
  1187.  
  1188.   - At least some of the possible default values of the PATH
  1189.     environment variable begin with the current directory. (The system
  1190.     interprets either a period or the empty string in any component of
  1191.     PATH as the current directory. PATH is colon-separated, so if it
  1192.     begins with a colon the first component is the empty string.) This
  1193.     exposes you to Trojan horse programs. Set PATH to a safe value
  1194.     (remove the current directory, or at least move it to the end) in
  1195.     /etc/cshrc and/or /etc/profile for regular users and /.login for
  1196.     root.
  1197.  
  1198.   - By default, /etc/config/ypbind.options contains the -ypsetme
  1199.     option. This allows someone who can fake your IP address to change
  1200.     your YP binding. Remove the option to close the hole and add the -s
  1201.     option for a little extra protection. If your site runs ypbind with
  1202.     the -v (verbose) option, you may also want to add 'YPSET=true' to
  1203.     /etc/config/ypmaster.options and comment out the 'ypset' line in
  1204.     /var/yp/ypmake. See the ypbind(1) and ypset(1) manpages for more.
  1205.     (Thanks to Paul "Shag" Walmsley <ccshag@showme.missouri.edu>.)
  1206.  
  1207.   - If you use SLIP (see slip(1M)), be sure that SLIP accounts' home
  1208.     directories are not world-writable. SLIP accounts are uid 0, so
  1209.     it's bad if just anyone can mess with their .forward files and the
  1210.     like.  /tmp, which is recommended in the "IRIX Advanced Site and
  1211.     Server Administration Guide", is necessarily world-writable and a
  1212.     bad choice.  You may want to make an empty, root-owned, mode 755
  1213.     directory to the effect of /usr/slip and use that. Any number of
  1214.     SLIP accounts can use a single home directory without conflict.
  1215.  
  1216.   - You *might* want to disallow .rhosts files, by adding the '-l' flag
  1217.     to the rlogind and rshd lines in /usr/etc/inetd.conf. However, this
  1218.     removes real functionality, and should not be done without reason.
  1219.     See the rlogind(1M) and rshd(1M) manpages. (Thanks to Paul "Shag"
  1220.     Walmsley <ccshag@showme.missouri.edu>.) Note, however, that the
  1221.     rlogind flag is reported not to work in some versions of IRIX!
  1222.     Details, anyone?
  1223.  
  1224.   - Read the rest of the entries in this section and make the changes
  1225.     they describe if necessary.
  1226.  
  1227.   Under IRIX 5.x only,
  1228.  
  1229.   - Turn on shadow passwords, which are not used by default. Run
  1230.     'pwconv' to move your passwords to /etc/shadow, where only root can
  1231.     read them. Note that you'll have to update /etc/shadow by hand for
  1232.     NIS users. See the pwconv(1M) and shadow(4) manpages.
  1233.  
  1234.   - Limit the hosts from which portmap(1) will accept RPC requests by
  1235.     using the -a option in /etc/config/portmap.options. For example, if
  1236.     your machine is www.xxx.yyy.zzz and your subnet is www.xxx.yyy you
  1237.     can reject RPC requests from outside your subnet by putting '-a
  1238.     255.255.255.0 www.xxx.yyy.0' in that file. (Thanks to Paul "Shag"
  1239.     Walmsley <ccshag@showme.missouri.edu>.)
  1240.  
  1241.   This list is guaranteed to be incomplete. Keep your eyes open.
  1242.  
  1243. ------------------------------
  1244.  
  1245. Subject: ! -63- How can I log more information about logins?
  1246. Date: 13 Nov 94 00:00:01 EST
  1247.  
  1248.   - 'last', 'who', etc. get remote login information from
  1249.     /var/adm/xutmp and /var/adm/xwtmp. That information is only logged
  1250.     into these files if they already exist. To create them, just say
  1251.     'touch /var/adm/xutmp /var/adm/xwtmp'.
  1252.  
  1253.   - As described in the login(1) manpage, you can add the line
  1254.     'syslog=all' to /etc/config/login.options to log all login
  1255.     attempts, not just successful ones, in /var/adm/SYSLOG.
  1256.  
  1257.   - 'ftpd', 'rshd' and 'tftpd' all have options ('-l' or '-L') which
  1258.     cause them to log all accesses. See their manpages. 'ftpd' also has
  1259.     '-ll' and '-lll' options (undocumented before IRIX 5.x) which log
  1260.     individual file transfers and the sizes of those files
  1261.     respectively.  Add the options to the last fields (not the
  1262.     second-to-last) of the appropriate lines of /etc/inetd.conf, then
  1263.     do 'killall -HUP inetd' or reboot.
  1264.  
  1265.   - Consider using TCP wrappers. These allow you to restrict
  1266.     connections to individual TCP daemons to particular hosts and
  1267.     prevent some forms of address spoofing. You can get source code
  1268.     from ftp://ftp.win.tue.nl/pub/security/.
  1269.  
  1270. ------------------------------
  1271.  
  1272. Subject:   -64- How can I make an anonymous or restricted FTP account?
  1273. Date: 04 May 94 00:00:01 EST
  1274.  
  1275.   Read the ftpd(1M) manpage and/or the article in the March/April 1994
  1276.   Pipeline. However, both discussions have a serious error: the ftp
  1277.   account's home directory (/usr/people/ftp) should be owned and
  1278.   writable only by root, NOT ftp. You might also want to make the 'pub'
  1279.   directory "sticky" with 'chmod +t' (like /tmp and /usr/tmp) so that
  1280.   one user can't delete another's files. A script which sets up a
  1281.   secure anonymous FTP account is at
  1282.   viz.tamu.edu:/pub/sgi/software/ftp/make-anonftp.
  1283.  
  1284. ------------------------------
  1285.  
  1286. Subject:   -65- How can I get X authorization to work?
  1287. Date: 27 Apr 94 00:00:01 EST
  1288.  
  1289.   Under IRIX 5.1.x or earlier, don't try. The MIT-MAGIC-COOKIE-1
  1290.   protocol did not work, and DGL programs did not understand X
  1291.   authority.
  1292.  
  1293.   Under IRIX 5.2 or later, heed the wise words of Mark Kilgard of SGI's
  1294.   X Window Systems group <mjk@hoot.asd.sgi.com>:
  1295.  
  1296.   The basic mechanism for the MIT-MAGIC-COOKIE-1 authorization protocol
  1297.   is implemented by the X server, Xlib, and xdm, and does work in IRIX
  1298.   5.x.  MIT-MAGIC-COOKIE-1 is the only supported protocol.
  1299.  
  1300.   Two caveats before I describe how to enable X authorization:
  1301.  
  1302.   1) Old remote IRIS GL programs probably will not be able to connect
  1303.      to the X server when X authority is enabled. (More on this below.)
  1304.  
  1305.   2) Due to a problem with how the local hostname is handled, to use X
  1306.      authority in the IRIX 5.x releases, you will need to make sure
  1307.      your /etc/sys_id file has a simple hostname, ie. hoot instead of a
  1308.      fully resolved hostname like hoot.asd.sgi.com  This problem has
  1309.      already been fixed for the next general release of IRIX.
  1310.  
  1311.   TO ENABLE X AUTHORIZATION, do the following to your IRIX 5.2 system:
  1312.  
  1313.       1)  Edit /var/X11/xdm/xdm-config as root and change the line
  1314.       saying
  1315.  
  1316.   DisplayManager*authorize:               off
  1317.  
  1318.         to say
  1319.  
  1320.   DisplayManager*authorize:               on
  1321.  
  1322.       2) Edit /var/X11/xdm/Xsession, /var/X11/xdm/Xsession-remote, and
  1323.      /var/X11/xdm/Xsession.dt as root and change the line saying
  1324.  
  1325.   /usr/bin/X11/xhost +
  1326.  
  1327.          to say
  1328.  
  1329.   #/usr/bin/X11/xhost +
  1330.  
  1331.          This disables the "xhost +" by commenting out the command.
  1332.  
  1333.       3) Make sure your /etc/sys_id file has no periods in it.  For
  1334.      example, change as root:
  1335.  
  1336.   hoot.asd.sgi.com
  1337.  
  1338.          to say
  1339.  
  1340.   hoot
  1341.  
  1342.       4) Reboot the machine OR restart a new xdm and X server.  This
  1343.      can be done as root with the following command:
  1344.  
  1345.   (/usr/gfx/stopgfx; killall xdm; /usr/gfx/startgfx) &
  1346.  
  1347.       5) Log in.  X authorization should be enabled.
  1348.  
  1349.   If you want to disable X authorization and return to the default
  1350.   system state where X clients can connect to the X server from any
  1351.   machine, reverse the changes in steps 1 and 2 and repeat step 4.
  1352.  
  1353.   If you want more information on X authorization, see the manpages for
  1354.   xdm(1), Xserver(1), Xsgi(1), Xsecurity(1), xauth(1) and xhost(1).
  1355.  
  1356.   X AUTHORITY AND REMOTE IRIS GL PROGRAMS: One of the major reaons for
  1357.   Silicon Graphics shipping its window system so that an X client from
  1358.   any machine could connect to the X server was because IRIS GL
  1359.   programs running remote using the DGL (distributed GL) protocol
  1360.   didn't interoperate with the X authorization mechanism; the dgld
  1361.   daemon that would run on the machine with graphics hardware had no
  1362.   way to get the correct X authority information to connect to the X
  1363.   server.
  1364.  
  1365.   This has been fixed for IRIX 5.2, but the fix only applies to IRIX 5
  1366.   binaries running remotely on an IRIX 5.2 system connecting to an IRIX
  1367.   5.2 X server.  In particular, remotely run IRIX 4 IRIS GL binaries
  1368.   will continue to not interoperate with an IRIX 5.2 X server (or a
  1369.   pre-IRIX 5.2 X server).  If you recompile your old IRIS GL binaries
  1370.   on IRIX 5.2, they then will work remotely connecting to IRIX 5.2 X
  1371.   servers running X authority.
  1372.  
  1373.   The bottom line is that if you want an IRIS GL program to run
  1374.   remotely on an X server using X authorization, you need to make sure
  1375.   the program is an IRIX 5 binary running on an IRIX 5.2 machine and
  1376.   the machine with the X server is also an IRIX 5.2 machine.
  1377.  
  1378.   To avoid a possible misconception: IRIS GL programs RUNNING LOCALLY
  1379.   (ie, not using DGL) WILL WORK FINE on an IRIX 5.2 system no matter if
  1380.   they are IRIX 4 or IRIX 5 binaries.  The problem with X authority is
  1381.   only for REMOTE IRIS GL programs.
  1382.  
  1383.   Also note that for X authorization to work for remote hosts, the
  1384.   remote program must have access to the correct X authorization magic
  1385.   cookie (normally read from ~/.Xauthority).  If you don't have a
  1386.   shared NFS mounted home directory, you'll probably need to use the
  1387.   xauth command to transfer the X authorization magic cookie to the
  1388.   remote ~/.Xauthority file.
  1389.  
  1390.   THE FUTURE:  Hopefully in the next general release of IRIX, a
  1391.   mechanism to enable and disable X authorization using a chkconfig
  1392.   option will be supported.  The problem with /etc/sys_id not having
  1393.   periods will definitely be fixed in the next general release of
  1394.   IRIX.  The problem with pre-IRIX 5.2 X servers and binaries not
  1395.   interoperating with X authorization will likely not be fixed. Fixing
  1396.   the problem required a DGL protocol extension which both the IRIS GL
  1397.   program and dgld must know about; this can't be fixed in already
  1398.   shipped software.
  1399.  
  1400. ------------------------------
  1401.  
  1402. Subject:   -66- What security-related bugs does IRIX have?
  1403. Date: 04 Nov 94 00:00:01 EST
  1404.  
  1405.   Some general comments before we start:
  1406.  
  1407.   - IRIX is too complex for us to guarantee that this list is complete.
  1408.     We only discuss problems we know about. We don't discuss insecurely
  1409.     designed systems (like YP) or ways in which you might misconfigure
  1410.     your system, only bugs.  We don't discuss third-party software,
  1411.     free or not.
  1412.  
  1413.   - Prudence and space permit us to describe only how to close holes,
  1414.     not to exploit them. Try comp.security.unix.
  1415.  
  1416.   - Some of the fixes involve installing a new version of a setuid
  1417.     binary.  Be sure that you 1) make it executable, setuid and owned
  1418.     by the correct user and group (or it won't work), and 2) remove the
  1419.     old version so bad guys can't use it!
  1420.  
  1421.   Now for the holes themselves:
  1422.  
  1423.   - CERT advisory CA-92:08, which you can get from
  1424.  
  1425.       ftp.cert.org:/pub/cert_advisories/CA-92:08.SGI.lp.vulnerability
  1426.  
  1427.     describes problems with the permissions of 'lp'-related parts of
  1428.     IRIX which allow anyone who can log in as lp to get root access.
  1429.     They are fixed in IRIX 4.0.5.  Briefly, the fix is
  1430.  
  1431.       su root
  1432.       cd /usr/lib
  1433.       chmod a-s,go-w lpshut lpmove accept reject lpadmin
  1434.       chmod go-ws lpsched vadmin/serial_ports vadmin/users vadmin/disks
  1435.       cd /usr/bin
  1436.       chmod a-s,go-w disable enable
  1437.       chmod go-ws cancel lp lpstat
  1438.  
  1439.   - CIAC Bulletin F-01, which you can get from 
  1440.  
  1441.       ftp://ftp.vis.colostate.edu/pub/irix/security/advisories/CIAC-F.01
  1442.       ftp://ciac.llnl.gov/pub/ciac/bulletins/f-fy95/
  1443.  
  1444.     describes a race condition in IRIX 4.0.x's
  1445.     /usr/lib/vadmin/serial_ports which allows any user to become root
  1446.     in IRIX 4.0.x. 'chmod 700' it to close the hole; it will still work
  1447.     fine.
  1448.  
  1449.     /usr/lib/vadmin/serial_ports is part of IRIX 4.0.x and should not
  1450.     exist on IRIX 5.x systems, but some users have reported problems
  1451.     with upgrading from 4.0.x to 5.x which leave old binaries behind.
  1452.     If the file exists on your 5.x system, remove it. (5.x's
  1453.     equivalent, /usr/Cadmin/bin/cports, does not have the problem.)
  1454.  
  1455.   - CERT advisory CA-93:16, which you can get from
  1456.  
  1457.       ftp.cert.org:/pub/cert_advisories/CA-93:16.sendmail.vulnerability
  1458.  
  1459.     describes a hole or holes in /usr/lib/sendmail which allow anyone
  1460.     root access, whether they can log in initially or not! At least
  1461.     some of these are present in every version if IRIX up to and
  1462.     including 5.2. Fixed versions are in
  1463.  
  1464.       ftp.sgi.com:/sgi/IRIX4.0/sendmail/
  1465.       ftp.sgi.com:/sgi/IRIX5.0/sendmail/
  1466.  
  1467.   - CERT advisory CA-93:17, which you can get from
  1468.  
  1469.       ftp.cert.org:/pub/cert_advisories/CA-93:17.xterm.logging.vulnerability
  1470.  
  1471.     describes a hole in /usr/bin/X11/xterm which allows any user root
  1472.     access. It is fixed in IRIX 5.x.  A fixed version for IRIX 4.x is
  1473.     at
  1474.  
  1475.       ftp.sgi.com:/sgi/IRIX4.0/xterm/
  1476.  
  1477.     The 'fix', incidentally, is that logging is completely disabled.
  1478.  
  1479.   - /usr/bin/under is an unused (!) part of 'rexd'. It is setuid root
  1480.     and may allow root access, so 'chmod -s' it just in case. Note that
  1481.     SGI ships IRIX with 'rexd' turned off because 'rexd' is itself a
  1482.     security problem. It is not shipped in IRIX 5.x.
  1483.  
  1484.   - /usr/bsd/rdist has several holes which allow any user root access
  1485.     in all versions of IRIX up to and including 5.2, including the
  1486.     4.0.5 and 5.x binaries on ftp.sgi.com.
  1487.  
  1488.     Under IRIX 5.2, you can install patch 130 to close all known
  1489.     holes.  Under IRIX 4.0.x, you must close the hole with 'chmod -s'.
  1490.     rdist will then work only when used by root. If your non-root users
  1491.     need 'rdist', there is a free version which claims to be free of
  1492.     all known holes in usc.edu:/pub/rdist/.  Make sure you get version
  1493.     6.1 beta 3 or later.
  1494.  
  1495.     Note that CERT advisory CA-91:20
  1496.     (ftp.cert.org:/pub/cert_advisories/CA-91:20.rdist.vulnerability) is
  1497.     badly out of date.
  1498.  
  1499.   - The 'lpr' subsystem in IRIX 4.0.x and 5.x, up to and including 5.2,
  1500.     has several holes which allow a non-root user to become root. Note
  1501.     that 'lp' is SGI's usual printing system; you only need 'lpr' if
  1502.     you need to deal with remote printers. If you don't need 'lpr',
  1503.     make sure it isn't installed. (It lives in the eoe2.sw.lpr
  1504.     subsystem.) If you do need 'lpr', there are fixed versions at
  1505.  
  1506.       ftp.sgi.com:/sgi/IRIX4.0/lpr/lpr.latest.Z
  1507.       ftp.sgi.com:/sgi/IRIX5.0/lpr/lpr.latest.Z
  1508.  
  1509.     The versions dated 29 and 26 April, respectively, work with NIS
  1510.     (YP).  The IRIX 5.x version is also available from the TAC as patch
  1511.     131.
  1512.  
  1513.   - /usr/etc/arp is setgid sys in IRIX up to and including 5.2,
  1514.     allowing anyone who can log into your machine to read files which
  1515.     should be readable only by group 'sys'.  Close the hole with 'chmod
  1516.     -s'. This prevents non-root users from using 'arp' at all, but they
  1517.     don't generally need it.
  1518.  
  1519.   - /usr/sbin/cdinstmgr is setuid root in IRIX 4.0.5[A-F] and
  1520.     /etc/init.d/audio is setuid root in IRIX 5.2. They are scripts;
  1521.     setuid scripts are a well-known Unix security problem. IRIX ignores
  1522.     the setuid bit by default, but 'chmod -s' the scripts just in
  1523.     case.
  1524.  
  1525.   - /usr/sbin/colorview is setuid root in IRIX 5.x up to and including
  1526.     5.2, allowing anyone to use it to read any file regardless of
  1527.     permissions. Close the hole with 'chmod -s /usr/sbin/colorview'.
  1528.  
  1529.   - /usr/bin/newgrp is group-writable in IRIX 5.2. It doesn't need to 
  1530.     be, and it might be a problem depending on your use of group sys.
  1531.     'chmod g-w' it.
  1532.  
  1533.   - /usr/sbin/printers has a bug in IRIX 5.2 (and possibly earlier 5.x
  1534.     versions) which allows any user to become root. Call the TAC and
  1535.     request patch 5. You might want to 'chmod -s' it while you're
  1536.     waiting.
  1537.  
  1538.   - /usr/sbin/sgihelp has a bug in IRIX 5.2 (and possibly earlier 5.x
  1539.     versions) which allows any user to become root. This is so bad that
  1540.     the patch (#65, along with the prerequisite patch 34) is FTPable
  1541.     from ftp.sgi.com:/security/, and SGI is preparing a CD containing
  1542.     only that patch. Call the TAC if you can't FTP. You should 'chmod
  1543.     -x /usr/sbin/sgihelp' while you're waiting.
  1544.  
  1545.   - The version of inst which comes with patch 34, which is required
  1546.     for installation of all other patches (even those with lower
  1547.     numbers) saves old versions of binaries in /var/inst/patchbase. It
  1548.     does not remove execution or setuid permissions! 'chmod 700' that
  1549.     directory so evil users can't get to the old binaries.
  1550.  
  1551.   - /usr/bsd/newaliases (which is just a symlink to /usr/lib/sendmail)
  1552.     creates /etc/aliases.{dir,pag} with mode 666. Any user can thus add
  1553.     aliases which can run programs or steal mail. This is true up to
  1554.     and including IRIX 5.2. Close the hole by running newaliases (if
  1555.     you haven't already) and doing 'chmod go-w /etc/aliases.dir
  1556.     /etc/aliases.pag'. Once those files exist and have proper
  1557.     permissions, you're OK.
  1558.  
  1559. ------------------------------
  1560.  
  1561. Subject:   -67- I think I've found a security hole in IRIX; whom do I
  1562.                 notify at SGI?
  1563. Date: 10 Dec 93 00:00:01 CST
  1564.  
  1565.   In general, if you find a security problem (or think you have), you
  1566.   can send it to postmaster@sgi.com. This address gets a lot of mail,
  1567.   so you may want to CC your mail to one of the SGI employees who
  1568.   regularly post to Usenet. (Several have indicated that they will be
  1569.   glad to know about such things.)
  1570.  
  1571.   You can also notify CERT <cert@cert.org>, who will contact the
  1572.   appropriate people from their contact list. They may take some time.
  1573.  
  1574. ------------------------------
  1575.  
  1576. Subject:   -68- BUGS
  1577. Date: 15 May 94 00:00:01 EST
  1578.  
  1579.   These questions discuss miscellaneous bugs in IRIX.
  1580.  
  1581. ------------------------------
  1582.  
  1583. Subject:   -69- Why is my network license daemon ('netlsd') exiting?
  1584. Date: 20 May 93 00:00:01 CST
  1585.  
  1586.   For netlsd to run, you need to have 'llbd' and 'glbd' installed and
  1587.   running.  A complete debugging procedure is in the netls release
  1588.   notes, which can be read with 'relnotes netls_eoe 5'.
  1589.  
  1590.   Please let us know if this problem went away in recent IRIXes.
  1591.  
  1592. ------------------------------
  1593.  
  1594. Subject: ! -70- What's this 'iotim' error in my syslog in IRIX 4.0.x?
  1595. Date: 13 Nov 94 00:00:01 EST
  1596.  
  1597.   It's a bug in 'rpc.rstatd' which affects several programs including
  1598.   'ruptime' and 'sysmeter'.
  1599.  
  1600.   Before IRIX 4.0.5H, 'rpc.rstatd' says
  1601.  
  1602.     rstatd[4840]: read: iotim: No such device or address
  1603.  
  1604.   If you see this, upgrade to a newer IRIX or get the patched
  1605.   'rpc.rstatd' from ftp.sgi.com:/support/rpc.rstatd.
  1606.  
  1607.   In 4.0.5H and IOP 'rpc.rstatd' ignores the problem (returning all but
  1608.   the SCSI disk stats which cause the error) but still generates the
  1609.   following message:
  1610.  
  1611.     rstatd[4941]: read: bad iotim, no disk stats: No such device or address
  1612.  
  1613.   This may be ignored.
  1614.  
  1615.   In IRIX 5.x, the problem is completely fixed.
  1616.  
  1617. ------------------------------
  1618.  
  1619. Subject:   -71- Why do 'who', 'rusers', etc. show users who aren't
  1620.                 really logged in in IRIX 4.0.x?
  1621. Date: 30 Dec 93 00:00:01 EST
  1622.  
  1623.   There is a well-known bug in IRIX 4.0.x wherein /etc/utmp is not
  1624.   updated properly after a user logout. These programs are simply
  1625.   reporting the non-updated contents of /etc/utmp.
  1626.  
  1627.   Fixes have been provided by jer@blaise.cif.rochester.edu, David Hinds
  1628.   <dhinds@allegro.stanford.edu> and Patrick M. Ryan
  1629.   <pat@gsfc.nasa.gov>.  They can be found in
  1630.   viz.tamu.edu:/pub/sgi/software/utmp/.
  1631.  
  1632. ------------------------------
  1633.  
  1634. Subject:   -72- Why do some programs parse /etc/fstab incorrectly in
  1635.                 IRIX 4.0.5?
  1636. Date: 10 Dec 94 00:00:01 EST
  1637.  
  1638.   In IRIX 4.0.5, some programs (e.g. 'fsr') misinterpret lines in
  1639.   /etc/fstab, so that, e.g.,
  1640.  
  1641.     /dev/usr /usr efs rw,raw=/dev/rusr,quota 0 0
  1642.  
  1643.   would cause 'fsr' to think that the raw device pathname was
  1644.   "/dev/rusr,quota" instead of "/dev/rusr". There is no such device, so
  1645.   /dev/rusr would never be defragmented. You can work around this by
  1646.   putting the "raw" option last:
  1647.  
  1648.     /dev/usr /usr efs rw,quota,raw=/dev/rusr 0 0
  1649.  
  1650.   This is fixed in IRIX 5.x.
  1651.  
  1652. ------------------------------
  1653.  
  1654. Subject: ! -73- Why is my Indigo's Ethernet performance dog-slow under
  1655.                 IRIX 4.0.x?
  1656. Date: 13 Nov 94 00:00:01 EST
  1657.  
  1658.   You need the "E++" patch to IRIX 4.0.5, IRIX 4.0.5IOP ("Indigo Only
  1659.   Patch"), which includes the E++ patch, or IRIX 5.x.
  1660.  
  1661. ------------------------------
  1662.  
  1663. Subject: ! -74- Why is my Indigo getting SIGSEGVs and crashing under
  1664.                 IRIX 4.0.5IOP?
  1665. Date: 13 Nov 94 00:00:01 EST
  1666.  
  1667.   Make sure you've installed the 4.0.5IOP NFS maintenance patch along
  1668.   with the rest of 4.0.5IOP. If you're sure you have, call the TAC.
  1669.   You may need the "IP20 ethernet patch".  This comes *after* 4.0.5IOP,
  1670.   and is not to be confused with the older "E++ patch" (see the
  1671.   previous question).
  1672.  
  1673. ------------------------------
  1674.  
  1675. Subject: ! -75- Why is my Indigo2 panicking under IRIX 4.0.5?
  1676. Date: 13 Nov 94 00:00:01 EST
  1677.  
  1678.   There are several keyboard-related bugs in IRIX 4.0.5H and 4.0.5IOP
  1679.   which cause Indigo2s to crash or freeze. One sign that these
  1680.   particular bugs are responsible is the message "PANIC: Timeout Table
  1681.   Overflow" or "WARNING: Couldn't allocate streams buffer" in
  1682.   /usr/adm/SYSLOG.  Get the "Indigo2 keyboard patch" (aka "pckm patch")
  1683.   from SGI or upgrade to IRIX 5.2.
  1684.  
  1685. ------------------------------
  1686.  
  1687. Subject: ! -76- What's wrong with ftpd in IRIX 5.2?
  1688. Date: 08 Nov 94 00:00:01 EST
  1689.  
  1690.   It doesn't maintain utmp properly, so ftp logins will appear in the
  1691.   output of 'who' and similar commands even after they've logged out,
  1692.   and it dies during 'mget's. Get patch 41, 142 or 162 from the TAC.
  1693.   (These are all essentially the same patch, but some people have
  1694.   reported that patch 142 does not work.)
  1695.  
  1696. ------------------------------
  1697.  
  1698. Subject:   -77- Why isn't /usr/adm/SYSLOG being updated?
  1699. Date: 23 Jun 94 00:00:01 CST
  1700.  
  1701.   Popular causes include:
  1702.  
  1703.   - running out of disk space. Once syslogd is unable to write to
  1704.     /usr/adm/SYSLOG, it won't try again until it is `killall -HUP
  1705.     syslogd`ed.
  1706.  
  1707.   - installing IRIX 4.0.x and failing to heed the nagging from
  1708.     the system when it is rebooted to run 'versions changed' and
  1709.     combine new and old configuration files.  In this case, the trouble
  1710.     is in /usr/spool/cron/crontabs/root.
  1711.  
  1712.   - Separating fields in /etc/syslog.conf with spaces instead of tabs.
  1713.     If you use tabs, syslogd will silently segv when it reads that
  1714.     file.  This should be fixed in IRIX 5.3.
  1715.  
  1716. ------------------------------
  1717.  
  1718. Subject:   -78- I just edited /etc/inittab, and now I can't start up or
  1719.                 shut down my SGI! What's wrong?
  1720. Date: 23 Jun 94 00:00:01 EST
  1721.  
  1722.   If the last line of /etc/inittab is a comment, init will screw up
  1723.   horribly.  If your machine is still running, remove the comment and
  1724.   everything will be OK. If not, go to the miniroot, run the shell and
  1725.   remove the comment from there. (Note that from the miniroot's point
  1726.   of view, /etc/inittab is /root/etc/inittab.) The problem should be
  1727.   fixed in IRIX 5.3.
  1728.  
  1729. ------------------------------
  1730.  
  1731. Subject:   -79- Why does timed say "bind: Cannot assign requested
  1732.                 address"?
  1733. Date: 29 Oct 94 00:00:01 EST
  1734.  
  1735.   timed is incompatible with the rld which comes with patchSG0000023,
  1736.   which is needed for DeltaCC. There are two solutions to this problem
  1737.   (thanks to Alan Davis <davis@masig.fsu.edu>):
  1738.  
  1739.   - Get a new timed from SGI.
  1740.  
  1741.   - Replace the following line in /etc/init.d/network.options (line 664
  1742.     in an unmodified IRIX 5.2 file)
  1743.  
  1744.     /usr/etc/timed -M `cat $CONFIG/timed.options 2> /dev/null` &
  1745.  
  1746.     with
  1747.  
  1748.     env _RLD_ARGS="-clearstack" /usr/etc/timed `cat $CONFIG/timed.options 2> /dev/null` &
  1749.  
  1750. ------------------------------
  1751.  
  1752. Subject:   -80- MISCELLANEOUS
  1753. Date: 15 May 94 00:00:01 EST
  1754.  
  1755.   Everything else.
  1756.  
  1757. ------------------------------
  1758.  
  1759. Subject: ! -81- How do I set the number of processes allowed on my
  1760.                 machine?
  1761. Date: 13 Nov 94 00:00:01 EST
  1762.  
  1763.   Use systune(1M) to change 'nproc' (in the 'numproc' group of
  1764.   parameters) and reboot.
  1765.  
  1766. ------------------------------
  1767.  
  1768. Subject:   -82- Where can I get a termcap file for 'iris-ansi-net' to
  1769.                 install on my non-SGI system?
  1770. Date: 20 May 93 00:00:01 CST
  1771.  
  1772.   SGIs use terminfo, so you need to translate the terminfo description
  1773.   to termcap. 'infocmp -Cr iris-ansi-net' will produce an iris-ansi-net
  1774.   termcap file. See infocmp(1) for more. Note that 'infocmp' is in the
  1775.   eoe2.sw.terminf subsystem, which is not installed by default.
  1776.  
  1777. ------------------------------
  1778.  
  1779. Subject:   -83- Can I change my full name or login shell without being
  1780.                 superuser?
  1781. Date: 16 Mar 94 00:00:01 EST
  1782.  
  1783.   Maybe. IRIX has no 'chfn' or 'chsh', so if you're a local user you're
  1784.   stuck. However, if your account is on NIS (Yellow Pages) you can use
  1785.   'ypchpass'. You might also ask your superuser to install one of the
  1786.   many free implementations of 'chfn' and/or 'chsh'; one is in volume 3
  1787.   of comp.sources.unix (ftp.uu.net:/usenet/comp.sources.unix/volume3/).
  1788.  
  1789. ------------------------------
  1790.  
  1791. Subject:   -84- How can I administer my Iris without a graphics
  1792.                 terminal?
  1793. Date: 13 Apr 94 00:00:01 EST
  1794.  
  1795.   The visual admin tools in IRIX 4.0.x ('vadmin') need GL, and do not
  1796.   work on X terminals or workstations without GL. You can use 'sysadm'
  1797.   on text terminals for some tasks, but beware of bugs and
  1798.   inadequacies: SGI judged 'sysadm' to be too buggy to be worth
  1799.   updating for IRIX 5.x.
  1800.  
  1801.   The visual admin tools in IRIX 5.2 and later should display on any X
  1802.   display, *except* for the backup/restore tool which is an exact port
  1803.   from IRIX 4.0.x and requires GL. Some images will be missing when GL
  1804.   is unavailable, but the tools will function properly. As for text
  1805.   terminals, you're out of luck: 'sysadm' does not exist in IRIX 5.x.
  1806.  
  1807.   Of course, you can always use a text editor and write scripts, or see
  1808.   the next question.
  1809.  
  1810. ------------------------------
  1811.  
  1812. Subject:   -85- How can I use the visual admin tools on a system with
  1813.                 graphics to administer a system without graphics?
  1814. Date: 12 Feb 94 00:00:01 EST
  1815.  
  1816.   rlogin to the graphics-less system and run 'vadmin' (IRIX 4.0.x) or
  1817.   'chost' (IRIX 5.x).  Make sure that the DISPLAY environment variable
  1818.   is set correctly and that both the vadmin/sysadmdesktop and the
  1819.   shared library subsystems are installed on the graphics-less system
  1820.   (which they are in the default installation).
  1821.  
  1822.   Under IRIX 5.x, look at the READMEs in /var/sysadmdesktop/rsysmanapps
  1823.   and /var/sysadmdesktop/sysmanapps to find out how to use 'chost' to
  1824.   run commands on remote systems. Finally, in a future release of IRIX
  1825.   5.x, the sysadmdesktop tools will be able to manage remote systems
  1826.   *without* doing an rlogin.
  1827.  
  1828. ------------------------------
  1829.  
  1830. Subject:   -86- Can I put my own picture in the 'clogin' display?
  1831. Date: 20 Aug 94 00:00:01 EST
  1832.  
  1833.   Not in IRIX 5.0-5.2. You could in IRIX 4.0.x and earlier, and you
  1834.   will be able to again in IRIX 5.3.
  1835.  
  1836. ------------------------------
  1837.  
  1838. End of sgi/faq/admin Digest
  1839. ******************************
  1840. -- 
  1841. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1842. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1843.  
  1844.